package com.xplus.owe.site.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：leon
 * @date ：Created in 2022/4/27 22:22
 * @description：
 * @modified By：
 */
@Controller
public class HomeController {

//    @RequestMapping("{pages}/{login}")
//    public String pages(@PathVariable String pages,@PathVariable String login){
//        return pages+"/"+login;
//    }
 @RequestMapping("/")
    public String home(){
        return "home/HomePage";
    }

    @RequestMapping("/index.html")
    public String index(){
        return "home/index";
    }

    @RequestMapping("/home.html")
    public String tab1(){
        return "/home/home";
    }

    @RequestMapping("/productService.html")
    public String tab2(){
        return "home/productService";
    }

    @RequestMapping("/solution.html")
    public String tab3(){
        return "home/solution";
    }

    @RequestMapping("/customer.html")
    public String tab4(){
        return "home/customer";
    }
    @RequestMapping("/news.html")
    public String tab5(){
        return "home/news";
    }
    @RequestMapping("/about.html")
    public String tab6(){
        return "home/about";
    }
    @RequestMapping("/about-contact.html")
    public String contact(){
        return "home/about-contact";
    }
    @RequestMapping("/about-company.html")
    public String company(){
        return "home/about-company";
    }
//    product
    @RequestMapping("/product1.html")
    public String product1(){
        return "product/product1";}
    @RequestMapping("/product2.html")
    public String product2(){
        return "product/product2";
    }
    @RequestMapping("/product3.html")
    public String product3(){
        return "product/product3";
    }
    @RequestMapping("/product4.html")
    public String product4(){
        return "product/product4";
    }

//    news
    @RequestMapping("/news1.html")
    public String news1(){
        return "news/news1";
    }
    @RequestMapping("/news2.html")
    public String news2(){
        return "news/news2";
    }

//    solutions
@RequestMapping("/solution1.html")
public String solution1(){
    return "solutions/solution1";
}
  /*
    @RequestMapping("/company")
    public String company(){
        return "/home/company";
    }*/
}
